<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>stock product-query</title>
</head>

<script type="text/javascript">
	function storage(){
		fm.action = "<%=request.getContextPath()%>/storage.do?method=storage";
		fm.submit();
	}
</script>

<body>
	<form action="storage.do" name="StorageForm" method="POST">
		<input type="hidden" name="" value="">
		<table width="100%" cellpadding="5" cellspacing="1" border="1">
			<tr>
				<td colspan="6" align="center"><B>stock product list</B></td>
			</tr>
			<tr>
				<td align="center"><b>product code</b></td>
				<td align="center"><b>product name</b></td>
				<td align="center"><b>product quantity</b></td>
				<td align="center"><b>product price</b></td>
				<td align="center"><b>make date start</b></td>
				<td align="center"><b>product description</b></td>
			</tr>
			<c:forEach items="${col}" var="one" varStatus="status">
				<tr>
					<td>
						${one.productCode }
					</td>
					<td>&nbsp;${one.productName }</td>
					<td>&nbsp;${one.productAmount }</td>
					<td>&nbsp;${one.productPrice }</td>
					<td>&nbsp;${one.makeDate }</td>
					<td>&nbsp;${one.remark }</td>
				</tr>
			</c:forEach>
		</table>
		<jsp:include page="../util/SplitPage.jsp"></jsp:include>
		<br>
		<table width="100%" cellpadding="5" cellspacing="1">
			<tr>
				<td>
					<input type="button" name="but" value="make product" onclick="storage()" ></input>
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript">
	var fm = StorageForm;
</script>
</html>